package cn.itcast.jvm.t3.bytecode;

public class Demo3_6_1 {
    public static void main(String[] args) {
        int i = 0;
        int x = 0;
        while (i < 10) {
            x = x++;
            i++;
            // 每次局部变量槽的值+1 都会被计数栈的0 覆盖掉
            System.out.println("x = " + x);
        }
        System.out.println(x); // 所以 x 始终 为0
    }
}
